package jdbc;

import java.sql.Connection;
import java.sql.SQLException;

public class JdbcDemo14
{
    public static void main(String[] args)
    {
        try(Connection connection = DBUtil.getConnection())
        {
            connection.setAutoCommit(false);
            // 设置隔离级别
            connection.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);

        }catch (SQLException e)
        {
            e.printStackTrace();
        }
    }
}
